package com.dhcc.bpm.modules.bbs.service.impl;

import com.dhcc.bpm.modules.bbs.entity.BbsHomePage;
import com.dhcc.bpm.modules.bbs.vo.BbsHomePageVO;
import com.dhcc.bpm.modules.bbs.mapper.BbsHomePageMapper;
import com.dhcc.bpm.modules.bbs.service.IBbsHomePageService;
import com.dhcc.bpm.modules.bbs.vo.BbsHomePageVO2;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 门户首页 服务实现类
 *
 * @author donghang
 * @since 2020-03-31
 */
@Service
public class BbsHomePageServiceImpl extends BaseServiceImpl<BbsHomePageMapper, BbsHomePage> implements IBbsHomePageService {

	@Override
	public IPage<BbsHomePageVO> selectBbsHomePagePage(IPage<BbsHomePageVO> page, BbsHomePageVO bbsHomePage) {
		return page.setRecords(baseMapper.selectBbsHomePagePage(page, bbsHomePage));
	}

	@Override
	public IPage<BbsHomePageVO2> selectBbsHomePage2(IPage<BbsHomePageVO2> page, BbsHomePageVO2 bbsHomePage) {
		return page.setRecords(baseMapper.selectHomePage2(page, bbsHomePage));
	}

}
